

import requests



#
# 发送GET请求
url = "https://appportal.honeywell.com/ApiSystem/MDCS/ProductInfo/GetProductStatusInfo"
params = {
    'Serial': '24180B2E99',  # 需要替换为实际的Serial值
    'Id_Department': 'e8d87566-4e1f-4ebf-b6aa-3220f4d26e54',
    # 'Token': '97515b77-58aa-4768-9505-9d2086b11493'
}
headers = {
    'token': '97515b77-58aa-4768-9505-9d2086b11493'
    # 'Authorization': 'Bearer 97515b77-58aa-4768-9505-9d2086b11493'
}

response = requests.get(url, params=params, headers=headers, verify=False) # disable ssl verify
print(response.status_code)  # 打印响应状态码
print(response.text)  # 打印响应正文
# print(response.json())  # 如果响应内容是JSON格式，可以使用json()方法解析



# # 发送GET请求2
# url = "https://appportal.honeywell.com/ApiSystem/MDCS/ProductInfo/GetDeviceVarTestValue?Key=00000032&Id_Department=e8d87566-4e1f-4ebf-b6aa-3220f4d26e54&DeviceName=TestDevice&VarName=Error_Message&TestType=1"
# # params = {
# #     'Serial': '17117B0EFE',  # 需要替换为实际的Serial值
# #     'Id_Department': 'e8d87566-4e1f-4ebf-b6aa-3220f4d26e54',
# #     # 'Token': '97515b77-58aa-4768-9505-9d2086b11493'
# # }
# headers = {
#     # 'token': '97515b77-58aa-4768-9505-9d2086b11493'
#     'Authorization': 'Bearer 97515b77-58aa-4768-9505-9d2086b11493'
# }
#
# # response = requests.get(url,  headers=headers, verify=False)
# response = requests.get(url,  headers=headers)
# print(response.status_code)  # 打印响应状态码
# print(response.text)  # 打印响应正文
# # print(response.json())  # 如果响应内容是JSON格式，可以使用json()方法解析

if __name__ =='__main__':
    # test_sql_server_client()
    pass